<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <style type="text/css">
    .a { width:300px; border:1px solid #000;}
    .b {float:right; width:100px; height:100px; background:#ccc;}
  </style>
</head>
<body>
  <div class="a">
    <div class="b">float right</div>
    <div>Long text long text long text long text long text long text long text long text long text</div>
  </div>
</body>
</html>
